package com.arsn.myf.system.entity;

import com.arsn.myf.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 角色信息对象
 *
 * @author zhongrj
 * @date 2022-12-12 20:18:44
 */
@Data
@TableName("sys_role")
@ApiModel(value = "Role对象", description = "Role对象")
public class Role extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 角色ID
    */
    @TableId(value = "id",type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "角色ID")
    private Long id;

    /**
    * 角色名称
    */
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    /**
    * 角色编号
    */
    @ApiModelProperty(value = "角色编号")
    private String roleCode;

    /**
    * 显示顺序
    */
    @ApiModelProperty(value = "显示顺序")
    private Integer roleSort;

    /**
    * 父角色id
    */
    @ApiModelProperty(value = "父角色id")
    private Long parentId;

    /**
    * 角色状态（0正常 1停用）
    */
    @ApiModelProperty(value = "角色状态（0正常 1停用）")
    private Integer status;

    /**
    * 删除标志（0代表存在 1代表删除）
    */
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    @TableLogic
    private Integer isDeleted;

    /**
    * 备注
    */
    @ApiModelProperty(value = "备注")
    private String remark;

}
